package com.gxa.ehome.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public class UserBase implements Serializable {

   private  Integer id;
   /**登录名 */
   private String name;
   /**登录密码*/
    private String pwd;
    /**真实姓名*/
    private String username;

    // 如果存在时间日期类型的字段,也可以利用JSONField进行格式化处理
   /* @JSONField(format = "YYYY-MM-dd HH:mm:ss")
    private Date regDate;*/

    public UserBase(String name, String pwd, String username) {

        this.name = name;
        this.pwd = pwd;
        this.username = username;
    }

    public UserBase(Integer id, String name, String pwd, String username) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.username = username;
    }

    public UserBase() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", username='" + username + '\'' +
                '}';
    }
}
